<template>
	<view class="tool flex flex-direction" v-if="show">
		<button class="tool-btn cu-btn bg-gradual-blue" @click="next('index')">主页</button>
		<button class="tool-btn cu-btn bg-gradual-pink" @click="next('base')">组件</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: true //process.env.NODE_ENV == 'development'
			}
		},
		methods: {
			next(name) {
				uni.navigateTo({
					url: name
				})
			}
		}
	}
</script>

<style>
	.tool {
		position: fixed;
		top: 600rpx;
		right: 0;
		z-index: 1;
	}

	.tool-btn {
		border-radius: 8rpx 0 0 8rpx;
		margin-bottom: 20rpx;
	}

	.tool-btn:last-child {
		margin-bottom: 0;
	}
</style>
